package jhlee42;

import java.util.Scanner;

public class J10Retangle {
	public static void main(String[] args) {
		int width; // 실수 double
		int height;
		String color; // 문자열 String
		int getAtea;
		int getPerimeter;
				
		
		Scanner sc = new Scanner(System.in);
		System.out.println("가로는?");
		width = sc.nextInt();
		System.out.println("세로는?");
		height = sc.nextInt();
		System.out.println("색상은?");
		color = sc.next();
		
	
		// 입력하고 결과 도출
		getAtea=getAtea(width, height);
		getPerimeter=getPerimeter(width, height);

		
		System.out.println("--------------------");
		System.out.println(width);
		System.out.println(height);
		System.out.println(color);
		System.out.println(getAtea);
		System.out.println(getPerimeter);
		
		
	
	}

	public static int getAtea(int width,int height){
		return width * height;
	}
	public static int getPerimeter(int width,int height){
		return (width + height)*2;
	}
	
	
	
	
	
	
/*	public static void exam_1(double[] width,double[] height,String[] color,double[] getAtea,double[] getPerimeter){
		width[1] = 4;
		height[1] = 40;
		color[1] = "red";

		getAtea[1] = width[1] * height[1];
		getPerimeter[1] = (width[1] + height[1]) * 2;
	}
	public static void exam_2(double[] width,double[] height,String[] color,double[] getAtea,double[] getPerimeter){
		width[1] = 3.5;
		height[1] = 40;
		color[1] = "orange";

		getAtea[1] = width[1] * height[1];
		getPerimeter[1] = (width[1] + height[1]) * 2;
	}*/
}
